package com.example.basics.examples;

public class AbstractClassExampleImpl extends AbstractClassExample{

    @Override
    public void func1() {
        System.out.println("func1");
    }

    public static void main(String[] args) {
        // AbstractClassExample ac1 = new AbstractClassExample(); // 'AbstractClassExample' is abstract; cannot be instantiated
        AbstractClassExample ace = new AbstractClassExampleImpl();
        int x = ace.x;

        ace.func1();
        ace.func2();
        System.out.println(x);
    }
}
